﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ANMCMaster.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="AllNations.Login" %>
<%@ Register src="~/Controls/StaticMainImage.ascx" TagName="StaticMainImage" TagPrefix="ANMC" %>

<asp:Content ID="ANPageHeaderContent" ContentPlaceHolderID="ANPageHeader" runat="server">
    <ANMC:StaticMainImage ID="StaticMainImage1" runat="server" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ANBodyContent" runat="server">
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="radMenuLeftNav" EventName="ItemClick">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ANMCPageViews" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"></telerik:RadAjaxLoadingPanel>
    <div class="leftnav">
        <div style="margin: 11px 0px 25px 0px;"><asp:Image ID="Image2" runat="server" ImageUrl="~/Images/sectionTitleMembership.png" /></div>
        <telerik:RadMenu ID="radMenuLeftNav" runat="server" EnableEmbeddedSkins="false" 
            Skin="ANMCLeftNav" OnItemClick="radMenuLeftNav_ItemClick">
            <Items>
                <telerik:RadMenuItem Text="로그인" Value="LoginPage" Selected="true"></telerik:RadMenuItem>
                <telerik:RadMenuItem Text="회원가입" Value="Registration"></telerik:RadMenuItem>
            </Items>
        </telerik:RadMenu>
    </div>
    <div class="rightcontentarea">
        <div id="contentBoxHolder">
            <div class="ContentTitleBar">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/welcome.png" />
            </div>
            <telerik:RadMultiPage ID="ANMCPageViews" runat="server" RenderSelectedPageOnly="true" SelectedIndex="0">
                <telerik:RadPageView ID="viewLoginPage" runat="server">
                    <article class="node static-page content">
                        <div style="font-size: 0.85em; letter-spacing: 1px;">
                            <asp:Login ID="Login1" runat="server" >
                                <LayoutTemplate>
                                    <table cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
                                        <tr>
                                            <td>
                                                <table cellpadding="0">
                                                    <tr>
                                                        <td align="left">
                                                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">아이디:</asp:Label>
                                                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                                                ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                                                ToolTip="User Name is required." ValidationGroup="Login1" Display="Dynamic">*</asp:RequiredFieldValidator>
                                                        </td>
                                                        <td style="padding: 3px;">
                                                            <asp:TextBox ID="UserName" runat="server" TabIndex="1" style="border: 1px solid #999; padding: 3px; font-family: Arial, Helvetica, Sans-Serif; width: 150px;"></asp:TextBox>
                                                            <asp:CheckBox ID="RememberMe" runat="server" TabIndex="3" Text="아이디저장" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="left">
                                                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">비밀번호:</asp:Label>
                                                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                                                ControlToValidate="Password" ErrorMessage="Password is required." 
                                                                ToolTip="Password is required." ValidationGroup="Login1" Display="Dynamic">*</asp:RequiredFieldValidator>
                                                        </td>
                                                        <td style="padding: 3px;">
                                                            <asp:TextBox ID="Password" runat="server" TabIndex="2" TextMode="Password" style="border: 1px solid #999; padding: 3px; font-family: Arial, Helvetica, Sans-Serif; width: 150px;"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="center" colspan="2" style="color:Red;">
                                                            <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>&nbsp;</td>
                                                        <td style="padding: 3px;" align="left">
                                                            <asp:Button ID="LoginButton" runat="server" TabIndex="4" CommandName="Login" Text="로그인" 
                                                                ValidationGroup="Login1" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 20px;">&nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td>&nbsp;</td>
                                                        <td style="text-align: left; padding: 3px;">
                                                            <div style="padding-bottom: 3px;">비밀번호를 잊으셨습니까?</div>
                                                            <asp:Button ID="PasswordAssistanceButton" runat="server" Text="비밀번호 찾기" UseSubmitBehavior="false" OnClick="PasswordAssistanceButton_Click" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 20px;">&nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td>&nbsp;</td>
                                                        <td style="text-align: left; padding: 3px;">
                                                            <div style="padding-bottom: 3px;">아직 온라인 회원이 아니십니까?</div>
                                                            <asp:Button ID="RegistrationButton" runat="server" Text="회원 가입하기" UseSubmitBehavior="false" OnClick="RegistrationButton_Click" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 20px;">&nbsp;</td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </LayoutTemplate>
                            </asp:Login>            
                        </div>
                    </article>
                </telerik:RadPageView>
                <telerik:RadPageView ID="viewRegistration" runat="server">
                    <article class="node static-page content">
                        <div style="font-size: 0.85em; letter-spacing: 1px;">
                            <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" ActiveStepIndex="0"
                                MailDefinition-From="office@anmc.us"
                                MailDefinition-IsBodyHtml="false"
                                MailDefinition-Subject="Welcome to All Nations Mission Church Online Membership"
                                OnSendingMail="CreateUserWizard1_SendingMail"
                                CreateUserButtonText="가입하기" >
                                <WizardSteps>
                                    <asp:CreateUserWizardStep runat="server">
                                        <ContentTemplate>
                                            <table cellpadding="3">
                                                <tr>
                                                    <td align="right">
                                                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">아이디:</asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                                            ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                                            ToolTip="User Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">비밀번호:</asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                                            ControlToValidate="Password" ErrorMessage="Password is required." 
                                                            ToolTip="Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        <asp:Label ID="ConfirmPasswordLabel" runat="server" 
                                                            AssociatedControlID="ConfirmPassword">비밀번호 확인:</asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" 
                                                            ControlToValidate="ConfirmPassword" 
                                                            ErrorMessage="Confirm Password is required." 
                                                            ToolTip="Confirm Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="EmailRequired" runat="server" 
                                                            ControlToValidate="Email" ErrorMessage="E-mail is required." 
                                                            ToolTip="E-mail is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center" colspan="2">
                                                        <asp:CompareValidator ID="PasswordCompare" runat="server" 
                                                            ControlToCompare="Password" ControlToValidate="ConfirmPassword" 
                                                            Display="Dynamic" 
                                                            ErrorMessage="The Password and Confirmation Password must match." 
                                                            ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center" colspan="2" style="color:Red;">
                                                        <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                                                    </td>
                                                </tr>
                                            </table>
                                        </ContentTemplate>
                                    </asp:CreateUserWizardStep>
                                    <asp:CompleteWizardStep runat="server">
                                    </asp:CompleteWizardStep>
                                </WizardSteps>
                            </asp:CreateUserWizard>
                        </div>
                    </article>
                </telerik:RadPageView>
            </telerik:RadMultiPage>
        </div>
        <div style="clear: both;"></div>
    </div>
    <div style="clear: both;"></div>
</asp:Content>
